<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<link href="images/skin.css" rel="stylesheet" type="text/css" />
<link href="images/fox.css" rel="stylesheet" type="text/css" />
<link href="/js/jquery-ui.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/myjs.js"></script>
<script type="text/javascript" src="/js/jquery-ui.js"></script>
<script type="text/javascript" language="JavaScript">
/*$(function(){

	$('input[name=mydate]').makeDate();
	
});*/


</script> 
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">采购管理</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="line_table">
		<tr>
		<td width="20">
		<img src="/images/icon-login-seaver.gif" width="16" height="16" />		</td>
		<td>
		当前位置：采购管理>>车辆采购单管理>>采购单查看(carProcurementListView)</td>
	</tr>
	</table>
	        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="line_table">
              <tbody class="tbody2">
              
                <tr>
                  <td width="5%" align="left"><span>采购单号</span></td>
                  <td width="12%" align="left"><span ><s:property value="purchaseorder.purchaseOrderId"/></span></td>
                  <td width="4%" align="left"><span>采购数量</span></td>
                  <td width="12%" align="left"><span><s:property value="purchaseorder.purchaseNum"/></span></td>
                </tr>
                <tr>
                  <td width="5%" align="left"><span>采购单价</span></td>
                  <td width="12%" align="left"><span><s:property value="purchaseorder.eachPrice"/>(万/辆)</span> </td>
                  <td width="4%" align="left"><span>创建时间</span></td>
                  <td width="12%" align="left"><span><s:date name="purchaseorder.createDate" format="yyyy年MM月dd日"/> </span></td>
                </tr>
                <tr>
                  <td width="4%" align="left"><span>采购车型</span></td>
                  <td width="12%" align="left"><span><s:property value="purchaseorder.modeldictionary.brand.brandName"/><s:property value="purchaseorder.modeldictionary.modelCode"/>(<s:property value="purchaseorder.modeldictionary.modelFeature"/>)</span></td>
                  <td width="5%" align="left"><span>预计打款日期</span></td>
                  <td width="12%" align="left"><span><s:date name="purchaseorder.estimatePayDate" format="yyyy年MM月dd日"/> </span></td>
                </tr>
                <tr>								
                  <td width="5%" align="left"><span>外饰颜色</span></td>
                  <td width="12%" align="left">
                  <s:iterator value="purchaseorder.modeldictionary.modelcolors" var="color">
                  	<span><s:property value="#color.colorName"/></span>
                  </s:iterator>
                  </td>
                  <td width="4%" align="left"><span>采购总额</span></td>
                  <td width="12%" align="left"><span>${purchaseorder.eachPrice * purchaseorder.purchaseNum}</span></td>
                </tr>
               
              </tbody>
            </table>
			
	        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="line_table">
              <thead class="thead">
                <tr>
                  <th width="14%">序号</th>
                  <th width="26%">vin号</th>
                  <th width="20%">VIN号后六位</th>
                  <th width="20%">发动机号</th>
                  <th width="20%">外饰颜色</th>
                </tr>
              </thead>
              <tbody class="tbody">
              <s:iterator value="v" var="vhe" status="st">
                <tr>
                  <td><s:property value="#st.count"/></td>
                  <td><s:property value="#vhe.vinNumber"/></td>
                  <td><s:property value="#vhe.vinLastSix"/></td>
                  <td><s:property value="#vhe.engineNumber"/></td>
                  <td><s:property value="#vhe.modelcolor.colorName"/></td>
                </tr>
                </s:iterator>
              </tbody>
            </table>
			<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="line_table">
		<tr>
			<td width="869">&nbsp;</td>
		  <td width="63" align="right"><a href="purchaseOrderaction!queryVehicle.action?count=1"><span class="left_ts">首页</span></a></td>
		  <td width="63" align="right"><a href="purchaseOrderaction!queryVehicle.action?count=${pre}"><span class="left_ts">上一页</span></a></td>
		  <td width="63" align="center"><span class="admin_toptxt">${count}/${zong}</span></td>
		  <td width="66" align="left"><a href="purchaseOrderaction!queryVehicle.action?count=${next}"><span class="left_ts">下一页</span></a></td>
		  <td width="63" align="left"><a href="purchaseOrderaction!queryVehicle.action?count=${zong}"><span class="left_ts">尾页</span></a></td>
		</tr>
	</table>
	</td>
    <td background="/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
页面要求：<br />
1.因为在数据库“汽车采购单表”中仅有采购总额和采购数量，所以单价需要手动算出<br />
2.如果该采购单已经上报物流部门，并形成提单，那么该采购单不允许修改，在修改列显示为空。<br />
3.分页每页显示15条数据。按照日期排序。
</body>
</html>